# Tools to run on system hosting the build
HOSTCC = gcc
-HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
+HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
/* include the type field in the symbol name, so that it gets
* compressed together */
s->len = strlen(str) + 1;
- s->sym = (char *) malloc(s->len + 1);
- strcpy(s->sym + 1, str);
+ s->sym = (unsigned char *) malloc(s->len + 1);
+ strcpy((char *)s->sym + 1, str);
s->sym[0] = s->type;
return 0;
* move then they may get dropped in pass 2, which breaks the
* symbols rules.
*/
- if (s->addr == _etext && strcmp(s->sym + offset, "_etext"))
+ if (s->addr == _etext && strcmp((char *)s->sym + offset, "_etext"))
return 0;
}
/* Exclude symbols which vary between passes. */
- if (strstr(s->sym + offset, "_compiled."))
+ if (strstr((char *)s->sym + offset, "_compiled."))
return 0;
for (i = 0; special_symbols[i]; i++)
- if( strcmp(s->sym + offset, special_symbols[i]) == 0 )
+ if( strcmp((char *)s->sym + offset, special_symbols[i]) == 0 )
return 0;
return 1;